import request from '@/utils/request'

// 查询教学日志列表
export function listClassJournal(query) {
  return request({
    url: '/edu/classJournal/list',
    method: 'get',
    params: query
  })
}

// 查询教学日志详细
export function getClassJournal(journalId) {
  return request({
    url: '/edu/classJournal/' + journalId,
    method: 'get'
  })
}

// 新增教学日志
export function addClassJournal(data) {
  return request({
    url: '/edu/classJournal',
    method: 'post',
    data: data
  })
}

// 修改教学日志
export function updateClassJournal(data) {
  return request({
    url: '/edu/classJournal',
    method: 'put',
    data: data
  })
}

// 删除教学日志
export function delClassJournal(journalId) {
  return request({
    url: '/edu/classJournal/' + journalId,
    method: 'delete'
  })
}

// 导出教学日志
export function exportClassJournal(query) {
  return request({
    url: '/edu/classJournal/export',
    method: 'get',
    params: query
  })
}

// 审核教师日志
export function examineNotice(journalId, status, examineNotes ) {
  return request({
    url: '/edu/classJournal/' + journalId + '/' + status + '/' + examineNotes,
    method: 'put',
  })
}